package com.zelix;

import java.io.*;

class gu extends kt
    implements ke, Comparable
{

    private td k;
    private int l;
    private static String z;

    gu(kt kt1, jb jb, qy qy1)
        throws IOException
    {
        super(kt1);
        int i = jb.readUnsignedShort();
        qy1.b(kt.g.a(i), this);
        l = jb.readUnsignedShort();
    }

    public int compareTo(Object obj)
    {
        gu gu1 = (gu)obj;
        if(k.q() < gu1.k.q())
            return -1;
        if(k.q() == gu1.k.q())
        {
            if(l < gu1.l)
                return -1;
            return l != gu1.l ? 1 : 0;
        } else
        {
            return 1;
        }
    }

    public int q()
    {
        return l;
    }

    public String a()
    {
        return z;
    }

    public void a(Integer integer, td td1)
    {
        k = td1;
    }

    public void b(int i)
    {
        l = i;
    }

    protected void a(DataOutputStream dataoutputstream)
        throws IOException
    {
        dataoutputstream.writeShort(k.q());
        dataoutputstream.writeShort(l);
    }

    private static String z(char[] chs) {
        byte key = 0;
        for (int i = 0; i < chs.length; i++) {
            switch (i % 5) {
                case 0:
                    key =0x47;
                    break;
                case 1:
                    key =52;
                    break;
                case 2:
                    key =22;
                    break;
                case 3:
                    key =93;
                    break;
                case 4:
                    key =2;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static 
    {
        z = z("\013]x8L2Yt8p\023Ut1g".toCharArray());
    }
}